package log

import (
	"github.com/gin-gonic/gin"
	"io"
	"os"
	"ppa/config/log"
)

func Init(config log.Config)  {
	if config.LogState == true {
		gin.DisableConsoleColor()
		f, _ := os.Create(config.LogFile)
		gin.DefaultWriter = io.MultiWriter(f, os.Stdout)
	}


}

